﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace QUANLYNHASACH
{
    class connect
    {

        public static string _connPath = "config.txt";
        private static string _connStr;

        private void GhiChuoiKetNoi()
        {
            _connStr = "Data Source=.;Initial Catalog= QUANLYNHASACH;Integrated Security=True;Pooling=False";
            File.WriteAllText(_connPath, _connStr);
        }
        public static string GetChuoiKetNoi()
        {
            return File.ReadAllText(_connPath);
        }

    }
}
